/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.domain.user.repository;

import com.lap.auth.domain.user.User;
import java.util.Optional;

/**
 * 系统管理员仓储接口
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
public interface UserRepository {

  User save(User user);

  int deleteById(Integer id);

  Optional<User> findById(Integer userId);

  Optional<User> findByUserName(String userName);
}
